package com.huaxingbankas.modules.services;

import java.util.List;

import com.huaxingbankas.modules.model.backup.User;

//import org.chinasb.framework.modules.demo.model.Demo;

public interface UserService {
    /**
     * 澧�������emo
     * 
     * @param demo
     * @return
     */
    public boolean save(User user);

    /**
     * �归�澧�������emo
     * 
     * @param demo
     * @return
     */
    public boolean[] save(User[] users);

    /**
     * ���demo
     * 
     * @param demo
     * @return
     */
    public boolean remove(User user);
    
    
    public boolean equal(User user);
    /**
     * �归����demo
     * 
     * @param demos
     */
    public void remove(User[] users);

    /**
     * �规�涓婚����demo
     * 
     * @param id
     * @return
     */
    public boolean removeById(Integer id);

    /**
     * �归��规�涓婚����demo
     * 
     * @param ids
     */
    public void removeByIds(Integer[] ids);

    /**
     * �ヨ�demo�版�璁板���
     * 
     * @return
     */
    public List<User> findAll();

    /**
     * �规�涓婚��ヨ�demo
     * 
     * @param id
     * @return
     */
    public User findById(Integer id);
    
    public User findByUsername(User user);
    /**
     * �归��规�涓婚��ヨ�demo璁板���
     * 
     * @param ids
     * @return
     */
    public User[] findByIds(Integer[] ids);

    /**
     * �����ession�版��版����
     */
    public void flush();
}